﻿
namespace System
{
    public class ConvertExt
    {
        public static T ChangeType<T>(object val)
        {
            if (val == null) 
                return default(T);
            return (T)Convert.ChangeType(val, typeof(T));
        }
    }
}
